<?php
use yii\helpers\Url;
use common\models\Article;
?>
<script type="text/javascript" src="js/jquery.flexslider-min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('.flexslider').flexslider({
            directionNav: true,
            pauseOnAction: false
        });
    });
</script>
<?= \Yii::$app->view->renderFile('@app/views/layouts/header.php'); ?>

<div class="clear"></div>

<div class="sy_main">
  <div class="wrapin">
    <div class="page">

    <!--page 开始-->
      <div class="page_left">
        <div class="page_left_title"><span>单位概况</span></div>
        <?php $list = Article::getArticles(7); ?>
        <div class="page_left_main">
          <?php 
          foreach ($list as $v) {
          ?>
            <li><a href="<?= Url::to(['/site/show', 'id' => $v->id])?>" id="<?= $v->id == $show_id ? 'page_left_hover' : ''?>"><span><?= $v->title?></span></a></li>
          <?php } ?>
        </div>
      </div>

      <!--page_left 结束-->
      <div class="page_right">
        <div class="page_right_main">
          <div class="page_right_title"><?= $model->title?></div>
          <div class="page_right_content">
            <div class="about">
                <?= $model->content?>
            </div>

          </div>
        </div>
      </div>
      <!--page_right 结束-->

    <!--page 结束-->
    </div>
  </div>
</div>

<?= \Yii::$app->view->renderFile('@app/views/layouts/footer.php'); ?>
